import request from '@/utils/request'

// 查询业务科目与会计科目映射列表
export function listSubjectMap(query) {
  return request({
    url: '/biz/subjectMap/list',
    method: 'get',
    params: query
  })
}

// 查询业务科目与会计科目映射详细
export function getSubjectMap(id) {
  return request({
    url: '/biz/subjectMap/' + id,
    method: 'get'
  })
}

// 新增业务科目与会计科目映射
export function addSubjectMap(data) {
  return request({
    url: '/biz/subjectMap',
    method: 'post',
    data: data
  })
}

// 修改业务科目与会计科目映射
export function updateSubjectMap(data) {
  return request({
    url: '/biz/subjectMap',
    method: 'put',
    data: data
  })
}

// 删除业务科目与会计科目映射
export function delSubjectMap(id) {
  return request({
    url: '/biz/subjectMap/' + id,
    method: 'delete'
  })
}
